<template>
  <el-dialog
    title="订单详情"
    :close-on-click-modal="false"
    :visible.sync="visible">
    <el-form :model="dataForm" ref="dataForm" label-width="100px">
    <el-form-item label="订单编号:" prop="orderNo">
      {{dataForm.orderNo}}
    </el-form-item>
    <el-form-item label="用户手机号:" prop="userPhone">
      {{dataForm.userPhone}}
    </el-form-item>
    <el-form-item label="订单分类:" prop="orderTypeName">
      {{dataForm.orderTypeName}}
    </el-form-item>
    <el-form-item label="订单名称:" prop="orderName">
      {{dataForm.orderName}}
    </el-form-item>
    <el-form-item label="订单价格:" prop="price">
      {{dataForm.price}}
    </el-form-item>
    <el-form-item label="支付价格:" prop="finalprice">
      {{dataForm.finalprice}}
    </el-form-item>
    <el-form-item label="订单时间:" prop="createTime">
      {{dataForm.createTime}}
    </el-form-item>
    <el-form-item label="支付方式:" prop="payMethodName">
      {{dataForm.payMethodName}}
    </el-form-item>
    <el-form-item label="支付状态:" prop="payStatusName">
      {{dataForm.payStatusName}}
    </el-form-item>
    <el-form-item label="商品来源:" prop="mediaSourceName">
      {{dataForm.mediaSourceName}}
    </el-form-item>
    <el-form-item label="分成比例:" prop="orderName">
    </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">确定</el-button>
    </span>
  </el-dialog>
</template>

<script>
  export default {
    data () {
      return {
        visible: false,
        dataForm: {
          userId: '',
          sourcePId: '',
          sourceId: '',
          sourceType: '',
          orderNo: '',
          tradeNo: '',
          qtOrderNo: '',
          orderName: '',
          avatar: '',
          payMethod: '',
          price: '',
          finalprice: '',
          discount: '',
          days: '',
          payTime: '',
          payStatus: '',
          orderStatus: '',
          remark: ''
        }
      }
    },
    methods: {
      init (dataForm) {
        this.visible = true
        this.dataForm = dataForm
      }
    }
  }
</script>
